/*=====================================================
 Copyright (C) ETERNAL<iqstar@ms24.hinet.net>
 URL : http://www.et99.net

请仔细阅读以下许可协议。当您使用本软体，您将自动成为本协议的一方并受到本协议的约束。

软体和文档受到台湾及中国大陆著作权法及国际条约的保护。您不得：
a)营利、出租或者出借软体或文档的任何部分。
b)反向工程、分解、反编译或者企图察看软体的源代码作为商业用途。
c)修改或者改变软体，或者与其他程式结合。

许可人保留软体及文档的所有权利和权益。您不能通过本许可协定获得软体的任何所有权和知识产权。
===================================================== */
var p_name = "", my_birth = "", my_age = "", m_name = "";
var wog_center_html = "", wog_online_list_html = "", wog_menu_html = "", wog_chat_html = "";
var tr_bgcolor2 = "#333333";
var tr_bgcolor3 = "#00400A";
var nosend = "#8D4B0A";
var wog_m_box_color1 = "#4B689E";
var online_temp_table1 = '<table class="online_temp_table1">';
var chat_table1 = '<table class="chat_table1">';
var menu_table1 = '<table class="menu_table1">';
var mercenary_table1 = '<table class="mercenary_table1">';
var temp_table1 = '<table class="temp_table1">';
var left_table1 = '<table class="left_table1">';
var left_table2 = '<table class="left_table2">';
var right_table1 = '<table class="right_table1">';
var right_table2 = '<table class="right_table2">';
var fight_temp_table1 = '<table class="fight_temp_table1">';
var group_table1 = '<table class="group_table1">';
var form_table1 = "<table class='form_table1'><tr><td>", form_table2 = "</td></tr></table>";
var build_table1 = '<table class="build_table1">';
var page_table1 = '<table class="page_table1">';
var temp_table2 = '</table>';
var hr = '<hr>';
var temp_country = '<select class="game-select" name="act_area" onChange="parent.change_mission(0,this.form);parent.select_area(this.options[this.options.selectedIndex].value,this.form)"><option value="" SELECTED>选择场所</option><option value="1" >中央大陆</option><option value="2" >魔法王国</option><option value="3" >热带雨林</option><option value="4" >末日王城</option></select>';
var vData = "";
var vData2 = "";
var cp_jmmoney = 0;
var img = "/ex_img/images/wog/img/";
var mimg = "/ex_img/images/wog/img/monster/";
var mid_file = "";
var g_img = "";
var p_sat_name = "", d_a_name = "", d_body_name = "", d_head_name = "", d_hand_name = "", d_foot_name = "",
    d_item_name = "", d_item2_name = "", p_group = "", d_ch_name = "", d_s_ch_name = "";
var d_a_name2 = "", d_body_name2 = "", d_head_name2 = "", d_hand_name2 = "", d_foot_name2 = "", d_item_name2 = "",
    p_group2 = "", d_ch_name2 = "", d_s_ch_name2 = "";
var p_name2 = "", my_birth2 = "", my_age2 = "", etc_group = "";
var pet_pname = "", pet_mname = "", t_team = "", p_support_name = "", pet_img = "", p_support_img = "";
var base_str = 0, base_smart = 0, base_agi = 0, base_vit = 0, base_life = 0, base_au = 0, base_be = 0, p_lv2 = 0;
var fightrow = [];
var fight_num = 0, shock_num = 0, shock_s = "", f_count = 40, f_hp = 15, f_sp = 100, f_escape_hp = 0, fight_x = 0,
    hotel_hp = -1, hotel_sp = -1, fight_message = "", fight_count_num = 0, fight_message_skill = "",
    fight_message_title = "";
var temp_obj = "";
var gf = "", gt = "";
var temp_p_hp = 0, temp_p_hpmax = 0, temp_m_hp = 0, temp_m_hpmax = 0;
var tmpNum = "";
var mercenary_set = 0, mercenary_time = 100000;
var peo_chk_time = 0;
var f, dfoot;
var fight_message = "";
var start_time;
var counts = 0;
var chat_size = 2;
var bg_img_path='../ex_img/wog_infinity/fightbg/'
var bg_img = [];
bg_img[1] =bg_img_path+ "1.jpg";
bg_img[2] =bg_img_path+ "2.jpg";
bg_img[3] =bg_img_path+ "3.jpg";
bg_img[4] =bg_img_path+ "4.jpg";
bg_img[5] =bg_img_path+ "5.jpg";
bg_img[6] =bg_img_path+ "6.jpg";
bg_img[7] =bg_img_path+ "7.jpg";
bg_img[8] =bg_img_path+ "8.jpg";
bg_img[9] =bg_img_path+ "9.jpg";
bg_img[10] =bg_img_path+ "10.jpg";
bg_img[11] =bg_img_path+ "11.jpg";
bg_img[12] =bg_img_path+ "12.jpg";
bg_img[13] =bg_img_path+ "13.jpg";
bg_img[14] =bg_img_path+ "14.jpg";
bg_img[15] =bg_img_path+ "15.jpg";
bg_img[16] =bg_img_path+ "16.jpg";
bg_img[17] =bg_img_path+ "17.jpg";
bg_img[18] =bg_img_path+ "5.jpg";
bg_img[19] =bg_img_path+ "6.jpg";
bg_img[20] =bg_img_path+ "7.jpg";
bg_img[21] =bg_img_path+ "1.jpg";
var sec = [
    ['未知区域'],
    ['中央平原', /*['香茅绿地', 1], ['绿风草地', 2], ['白沙海湾', 3], ['眠兽洞穴', 4]*/],
    ['试炼洞窟', /*['灯影隧道', 1], ['晶矿源地', 2], ['狭窄地道', 3], ['地底空洞', 4]*/],
    ['黑暗沼泽', /*['巨大沼泽', 1], ['腐植草原', 2], ['狂火祭坛', 3], ['狩者坟场', 4]*/], //3
    ['迷雾森林', /*['微风树林', 1], ['密林古城', 2], ['幻境花园', 3], ['浓雾旷野', 4]*/],
    ['古代遗迹', /*['灰雨祭坛', 1], ['藤蔓古道', 2], ['地底通道', 3], ['地下遗迹', 4]*/],
    ['久远战场', /*['古老战地', 1], ['接境战场', 2], ['征战遗址', 3], ['赭红荒原', 4]*/], //6
    ['王者之路', /*['试炼之道', 1], ['邪灵栈桥', 2], ['中央高塔', 3], ['熔岩断层', 4]*/],
    ['幻兽森林', /*['沉静丛林', 1], ['秘密兽道', 2], ['光辉草原', 3], ['精灵幻境', 4]*/],
    ['星河异界', /*['流星之丘', 1], ['星丝银河', 2], ['三角秘境', 3], ['次元虫洞', 4]*/], //9
    ['灼热荒漠', /*['幻觉沙丘', 1], ['海市蜃楼', 2], ['大漠丝路', 3], ['炎兽沙漠', 4]*/],
    ['无渊洞窟', /*['妖魔聚落', 1], ['毒气沼泽', 2], ['大地裂痕', 3], ['牲祭洞窟', 4]*/],
    ['天空之城', /*['云端城堡', 1], ['辉煌都市', 2], ['天使之厅', 3], ['封神殿堂', 4]*/], //12
    ['水晶之间', /*['幻像步道', 1], ['晶花水池', 2], ['结晶矿脉', 3], ['水晶王座', 4]*/],
    ['失落古船', /*['星空海岸', 1], ['古船坟地', 2], ['潮汐洞穴', 3], ['大幽灵船', 4]*/],
    ['最果之岛', /*['黄金沙滩', 1], ['猛兽森林', 2], ['密林湖泊', 3], ['荒者山峰', 4]*/], //15
    ['冷峰寒地', /*['寒气苔原', 1], ['覆雪大地', 2], ['暴风雪山', 3], ['极寒冰峰', 4]*/],
    ['废弃洞窟', /*['幽暗矿坑', 1], ['湿漉岩壁', 2], ['魔怪阶梯', 3], ['魔实验场', 4]*/], //17
    ['日没碉堡', /*['刺影高墙', 1], ['螺旋回廊', 2], ['机关巨塔', 3], ['碉堡中枢', 4]*/],
    ['静止之城', /*['凝滞地带', 1], ['污泥洞穴', 2], ['回朔空间', 3], ['片断时空', 4]*/],
    ['黑曜神庙'],
    ['血之魔域', /*['十字墓地', 1], ['恶魔遗迹', 2], ['暗红神殿', 3], ['焦池炼狱', 4]*/] //21
];
var sp_sec = [];
sp_sec[17] = ['废弃洞窟'];
sp_sec[18] = ['日没碉堡'];
sp_sec[19] = ['静止之城'];
sp_sec[20] = ['黑曜神庙'];
var birth = [];
birth[0] = "无";
birth[1] = "中央大陆";
birth[2] = "魔法王国";
birth[3] = "热带雨林";
birth[4] = "末日王城";
var s_status = [];
s_status[0] = "--";
s_status[1] = "地";
s_status[2] = "水";
s_status[3] = "火";
s_status[4] = "木";
s_status[5] = "风";
s_status[6] = "毒";
s_status[7] = "";
var wp_name = [];
wp_name[0] = "无";
wp_name[1] = "步兵";
wp_name[2] = "枪兵";
wp_name[3] = "骑兵";
wp_name[4] = "弓兵";
wp_name[5] = "冲车";
wp_name[6] = "火枪";
wp_name[7] = "火炮";
wp_name[8] = "工兵";
wp_name[9] = "火枪骑";
wp_name[10] = "魔龙";
wp_name[11] = "巨兽";
wp_name[12] = "邪骇兵";
var ex_name = [];
ex_name[0] = "无";
ex_name[1] = "煤";
ex_name[2] = "木材";
ex_name[3] = "石块";
ex_name[4] = "石油";
ex_name[5] = "黄金";
ex_name[6] = "酒";
ex_name[7] = "大麦";
ex_name[8] = "香烟";
ex_name[9] = "铁";
ex_name[10] = "皮毛";
ex_name[11] = "丝线";
ex_name[12] = "珍珠";
var group_act_type = [];
group_act_type[0] = "兵种生产";
group_act_type[1] = "出兵攻打";
group_act_type[2] = "运送军资";
group_act_type[3] = "修复据点";
group_act_type[4] = "侦查情报";
group_act_type[5] = "研究开发";
group_act_type[6] = "资源交易";
var g_area_type = [];
g_area_type[1] = "平原";
g_area_type[2] = "山";
g_area_type[3] = "林";
g_area_type[4] = "高原";
g_area_type[5] = "川";
g_area_type[6] = "谷地";
var g_weather = [];
g_weather[1] = "晴";
g_weather[2] = "雨";
g_weather[3] = "雾";
g_weather[4] = "雷";
g_weather[5] = "雪";
var g_item = [];
g_item[0] = "尚未设定";
g_item[1] = "野战修复";
g_item[2] = "伪报";
g_item[3] = "停战协议A";
g_item[4] = "紧急征召A";
g_item[5] = "紧急征召B";
g_item[6] = "紧急征召C";
g_item[7] = "停战协议B";
g_item[8] = "停战协议C";
var g_item_text = [];
g_item_text[0] = "";
g_item_text[1] = "进行公会战斗时，当据点防御力为0，自动修复防御力30%";
g_item_text[2] = "进行公会战斗时，随机使敌方任意一种兵种无法战斗，也无法对该兵种进行攻击";
g_item_text[3] = "进行公会战斗时，有50%机率使敌方退兵";
g_item_text[4] = "进行公会战斗时，随机增加任意一种兵种兵力(增加数3000~5000)";
g_item_text[5] = "进行公会战斗时，随机增加任意一种兵种兵力(增加数6000~9000)";
g_item_text[6] = "进行公会战斗时，随机增加任意一种兵种兵力(增加数10000~13000)";
g_item_text[7] = "进行公会战斗时，有60%机率使敌方退兵";
g_item_text[8] = "进行公会战斗时，有70%机率使敌方退兵";
var honor_name = [];
honor_name[1] = "大陆勋章";
honor_name[2] = "王国勋章";
honor_name[3] = "雨林勋章";
honor_name[4] = "王城勋章";
honor_name[5] = "白银勋章";
var build_set = [
    [[0, '步兵'], [1, '枪兵'], [2, '骑兵'], [3, '弓兵'], [4, '冲车'], [5, '火枪'], [6, '火炮'], [7, '工兵'], [8, '火枪骑'], [9, '魔龙'], [10, '巨兽'], [11, '邪骇兵']],
    [[12, '防御强化'], [13, '资源保护'], [27, '市场'], [28, '行军技巧'], [29, '要塞中心']],
    [[14, '侦查'], [15, '炎火陷阱'], [16, '洪水陷阱'], [17, '石落陷阱'], [18, '土穴陷阱']],
    [[19, '雁形阵'], [20, '鱼鳞阵'], [21, '鹤翼阵'], [22, '锋矢阵'], [23, '冲轭阵'], [24, '长蛇阵'], [25, '车悬阵'], [26, '方圆阵']],
];
var job_s = [];
job_s[0] = "";
job_s[1] = "删除成功";
job_s[2] = "转职成功";
job_s[3] = "设定成功";
job_s[4] = "感谢你使用本银行";
job_s[5] = "休息了一晚后,HP回复SP饱满<br>(住宿会收取住宿费，住宿费不足会扣经验值1/5)";
job_s[6] = "购买完成";
job_s[7] = "讯息成功发出";
job_s[8] = "";
job_s[9] = "开始拍卖";
job_s[10] = "建立成功";
job_s[11] = "变更成功";
job_s[12] = "兑换成功";
job_s[13] = "学习成功";
job_s[14] = "手续完成,请等待核可";
job_s[15] = "手续完成";
job_s[16] = "过度疲劳宠物死亡";
job_s[17] = "亲密度太低宠物逃跑";
job_s[18] = "放生成功";
job_s[19] = "";
job_s[20] = "任务接受成功";
job_s[21] = "恭喜完成任务";
job_s[22] = "取消任务成功";
job_s[23] = "装备完成!!";
job_s[24] = "转移完成";
var shop_type_lv = [['<a class="uline" onClick="parent.th_submit(document.f2,1,0)">LV1</a> <a class="uline" onClick="parent.th_submit(document.f2,2,0)">LV2</a> <a class="uline" onClick="parent.th_submit(document.f2,3,0)">LV3</a> <a class="uline" onClick="parent.th_submit(document.f2,4,0)">LV4</a> <a class="uline" onClick="parent.th_submit(document.f2,5,0)">LV5</a> <a class="uline" onClick="parent.th_submit(document.f2,6,0)">LV6</a> <a class="uline" onClick="parent.th_submit(document.f2,7,0)">LV7</a>']
    , ['<a class="uline" onClick="parent.th_submit(document.f2,1,1)">LV1</a> <a class="uline" onClick="parent.th_submit(document.f2,2,1)">LV2</a> <a class="uline" onClick="parent.th_submit(document.f2,3,1)">LV3</a> <a class="uline" onClick="parent.th_submit(document.f2,4,1)">LV4</a> <a class="uline" onClick="parent.th_submit(document.f2,5,1)">LV5</a> <a class="uline" onClick="parent.th_submit(document.f2,6,1)">LV6</a>']
    , ['<a class="uline" onClick="parent.th_submit(document.f2,1,2)">LV1</a> <a class="uline" onClick="parent.th_submit(document.f2,2,2)">LV2</a> <a class="uline" onClick="parent.th_submit(document.f2,3,2)">LV3</a> <a class="uline" onClick="parent.th_submit(document.f2,4,2)">LV4</a> <a class="uline" onClick="parent.th_submit(document.f2,5,2)">LV5</a> <a class="uline" onClick="parent.th_submit(document.f2,6,2)">LV6</a>']
    , ['<a class="uline" onClick="parent.th_submit(document.f2,1,3)">LV1</a> <a class="uline" onClick="parent.th_submit(document.f2,2,3)">LV2</a> <a class="uline" onClick="parent.th_submit(document.f2,3,3)">LV3</a> <a class="uline" onClick="parent.th_submit(document.f2,4,3)">LV4</a> <a class="uline" onClick="parent.th_submit(document.f2,5,3)">LV5</a> <a class="uline" onClick="parent.th_submit(document.f2,6,3)">LV6</a>']
    , ['<a class="uline" onClick="parent.th_submit(document.f2,1,4)">LV1</a> <a class="uline" onClick="parent.th_submit(document.f2,2,4)">LV2</a> <a class="uline" onClick="parent.th_submit(document.f2,3,4)">LV3</a> <a class="uline" onClick="parent.th_submit(document.f2,4,4)">LV4</a> <a class="uline" onClick="parent.th_submit(document.f2,5,4)">LV5</a> <a class="uline" onClick="parent.th_submit(document.f2,6,4)">LV6</a>']
];
var king_menu = '<tr class=head_td><td><a href=wog_etc.php?f=king&type=6 target="mission">等级</a> <a href=wog_etc.php?f=king&type=1 target="mission">胜场</a> <a href=wog_etc.php?f=king&type=2 target="mission">HP</a> <a href=wog_etc.php?f=king&type=3 target="mission">物攻</a> <a href=wog_etc.php?f=king&type=4 target="mission">魔攻</a> <a href=wog_etc.php?f=king&type=5 target="mission">敏捷</a> <a href=wog_etc.php?f=king&type=8 target="mission">魅力</a> <a href=wog_etc.php?f=king&type=7 target="mission">好野人</a></tr>';
var bank_depot_menu = '<tr><td><a href=javascript:parent.act_click("bank","view") target="mission">银行</a> <a href="javascript:parent.act_click(\'arm\',\'depot_list\',\'0\')" target="mission">武器</a> <a href="javascript:parent.act_click(\'arm\',\'depot_list\',\'1\')" target="mission">头部</a> <a href="javascript:parent.act_click(\'arm\',\'depot_list\',\'2\')" target="mission">身体</a> <a href="javascript:parent.act_click(\'arm\',\'depot_list\',\'3\')" target="mission">手部</a> <a href="javascript:parent.act_click(\'arm\',\'depot_list\',\'4\')" target="mission">脚部</a> <a href="javascript:parent.act_click(\'arm\',\'depot_list\',\'5\')" target="mission">道具</a> <a href="javascript:parent.act_click(\'arm\',\'depot_list\',\'7\')" target="mission">魔石</a> <a href="javascript:parent.act_click(\'arm\',\'depot_list\',\'8\')" target="mission">勋章</a> <a href="javascript:parent.act_click(\'arm\',\'depot_list\',\'9\')" target="mission">钥匙</a> <a href="javascript:parent.act_click(\'arm\',\'depot_list\',\'10\')" target="mission">精炼石</a></tr>';
var message_menu = '<a href="javascript:parent.act_click(\'message\',\'list\')" target="mission">收信</a> <a href="javascript:parent.message()">发信</a> <a href="javascript:parent.act_click(\'friend\',\'list\')">好友</a> <a href="javascript:parent.act_click(\'message\',\'item_list\')">取物</a>';
var mission_store = '<tr><td colspan="2"><a class="uline" onClick="parent.act_click(\'mission\',\'list\')">任务介绍所</a> : <a class="uline" onClick="parent.act_click(\'mission\',\'book\')">【查看未完成任务】<a> : <a class="uline" onClick="parent.act_click(\'mission\',\'paper\')">【查看已完成任务】</a></td></tr>';
var item_store_menu = '<tr class="head_td"><td>装备道具商店 》 <a class="uline" onClick="parent.shop_home_view(\'\',\'\',0,\'\',\'\')">【武器】</a> <a class="uline" onClick="parent.shop_home_view(\'\',\'\',1,\'\',\'\')">【头部】</a> <a class="uline" onClick="parent.shop_home_view(\'\',\'\',2,\'\',\'\')">【身体】</a> <a class="uline" onClick="parent.shop_home_view(\'\',\'\',3,\'\',\'\')">【手部】</a> <a class="uline" onClick="parent.shop_home_view(\'\',\'\',4,\'\',\'\')">【脚部】</a> <a class="uline" onClick="parent.th_submit(document.f2,1,\'5\')">【道具屋】</a> <a class="uline" onClick="parent.honor_view(null)">【勋章所】</a></td></tr>';
var group_menu = '<tr><td><input type="button" value="世界地图" onClick="parent.act_gclick(\'main\',\'view\')"> '
    + '<input type="button" value="会员状态" onClick="parent.act_gclick(\'member\',\'p_list\')"> '
    + '<input type="button" value="据点状态" onClick="parent.act_gclick(\'area_main\',\'area_main\')"> '
    + '<input type="button" value="布告栏" onClick="parent.act_gclick(\'book\',\'book\')"> '
    + '<input type="button" value="认领会员" onClick="parent.act_gclick(\'get_member\',\'get_member\')"> '
    + '<input type="button" value="荣誉设定" onClick="parent.act_gclick(\'point\',\'set_point\')"></td></tr>'
    + '<tr><td>'
    + '<input type="button" value="军备" onClick="parent.act_gclick(\'wp\',\'wp\')"> '
    + '<input type="button" value="造兵" onClick="parent.act_gclick(\'ex\',\'ex\')"> '
    + '<input type="button" value="研究" onClick="parent.act_gclick(\'build\',\'build_list\')"> '
    + '<input type="button" value="战报" onClick="parent.act_gclick(\'news\',\'news\')"> '
    + '<input type="button" value="交易" onClick="parent.act_gclick(\'market\',\'market\')"> '
    + '<input type="button" value="任务" onClick="parent.act_gclick(\'mission\',\'list\')"> '
    + '<input type="button" value="仓库" onClick="parent.act_gclick(\'depot\',\'depot_list\')"> '
    + '<input type="button" value="作业" onClick="parent.act_gclick(\'job\',\'job_list\')">'
    + '</td></tr>';
var group_area_menu = '<tr><td><input type="button" value="' + birth[1] + '" onClick="parent.act_gclick(\'main\',\'area\',1)"> <input type="button" value="' + birth[2] + '" onClick="parent.act_gclick(\'main\',\'area\',2)"> <input type="button" value="' + birth[3] + '" onClick="parent.act_gclick(\'main\',\'area\',3)"> <input type="button" value="' + birth[4] + '" onClick="parent.act_gclick(\'main\',\'area\',4)"></td></tr>';
var honor_menu = '<tr><td>类别 : <a href="javascript:parent.act_click(\'honor\',\'list\',\'mercenary\')">佣兵</a> <a href="javascript:parent.act_click(\'honor\',\'list\',\'arm_1\')">武器</a> <a href="javascript:parent.act_click(\'honor\',\'list\',\'arm_2\')">头部</a> <a href="javascript:parent.act_click(\'honor\',\'list\',\'arm_3\')">身体</a> <a href="javascript:parent.act_click(\'honor\',\'list\',\'arm_4\')">手部</a> <a href="javascript:parent.act_click(\'honor\',\'list\',\'arm_5\')">脚部</a> <a href="javascript:parent.act_click(\'honor\',\'list\',\'item\')">道具</a> <a href="javascript:parent.act_click(\'honor\',\'list\',\'key\')">钥匙</a></td></tr>';
var job_skill_menu = '<tr><td><a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'6\')">战士</a> <a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'7\')">术士</a> <a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'8\')">盗贼</a> <a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'9\')">乐手</a></td></tr>';
job_skill_menu += '<tr><td><a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'10\')">狂战士</a> <a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'11\')">骑士</a> <a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'12\')">魔导师</a> <a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'13\')">风水师</a> <a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'14\')">刺客</a> <a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'15\')">武术家</a> <a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'16\')">舞者</a> <a href="javascript:parent.act_click(\'skill\',\'skill_list\',\'17\')">兽师</a></td></tr>';
var job_skill_menu2 = '<tr><td><a href="javascript:parent.act_click(\'skill\',\'rview\',\'6\')">战士</a> <a href="javascript:parent.act_click(\'skill\',\'rview\',\'7\')">术士</a> <a href="javascript:parent.act_click(\'skill\',\'rview\',\'8\')">盗贼</a> <a href="javascript:parent.act_click(\'skill\',\'rview\',\'9\')">乐手</a></td></tr>';
job_skill_menu2 += '<tr><td><a href="javascript:parent.act_click(\'skill\',\'rview\',\'10\')">狂战士</a> <a href="javascript:parent.act_click(\'skill\',\'rview\',\'11\')">骑士</a> <a href="javascript:parent.act_click(\'skill\',\'rview\',\'12\')">魔导师</a> <a href="javascript:parent.act_click(\'skill\',\'rview\',\'13\')">风水师</a> <a href="javascript:parent.act_click(\'skill\',\'rview\',\'14\')">刺客</a> <a href="javascript:parent.act_click(\'skill\',\'rview\',\'15\')">武术家</a> <a href="javascript:parent.act_click(\'skill\',\'rview\',\'16\')">舞者</a> <a href="javascript:parent.act_click(\'skill\',\'rview\',\'17\')">兽师</a></td></tr>';
var g_area_type_title = '<u onmouseover=parent.wog_message_box("平原:骑兵+10%&n山:弓兵+10%,火炮+10%,骑兵-10%&n林:枪兵+10%,弓兵-10%&n高原:火枪+10%,火枪骑+10%&n川:火枪-10%,火枪骑-10%,火炮-10%&n谷地:步兵+10%,工兵-10%",0,2); onmouseout=parent.hidebox(\'wog_message_box\');>地形</u>';
var g_weather_title = '<u onmouseover=parent.wog_message_box("晴:火炮+10%,炎火陷阱效果+10%&n雨:火枪-10%,火炮-10%,洪水陷阱效果+10%&n雾:弓兵-10%,土穴陷阱效果+10%&n雷:枪兵-10%,石落陷阱效果+10%&n雪:骑兵-10%,火枪骑-10%",0,2); onmouseout=parent.hidebox(\'wog_message_box\');>气候</u>';
var plus_text = "<ol><li>必须使用‘相同等级’精炼石才能进行精炼石制作，例：白精炼石LV1+白精炼石LV1=白精炼石LV2</li><li>使用‘相同等级’、‘相同类别’精炼石进行制作，可做出同类并提高1级之精炼石，例：白精炼石LV1+白精炼石LV1=白精炼石LV2</li><li>使用‘相同等级’、‘不同类别’精炼石进行制作，可做出‘随机它类’并降1级之精炼石，例：白精炼石LV2+黑精炼石LV2=红精炼石LV1</li><li>装备精炼必须使用高于装备1级之精炼石，例：‘木刀+1’+‘蓝精炼石LV2’=木刀+2</li><li>所有装备都有精炼次数限制</li><li>装备精炼级数越高，失败机率相对提高</li></ol>";
var count_fight;
var buff1 = "<font color=green>+";
var buff2 = "</font>";
var debuff1 = "<font color=red>-";
var debuff2 = "</font>";
var noset = " <font color=red>";
var UI = {
    set_frame: 2,
    set_rows: "0,39,*,0,0,150",
    set_target: null,
    set_center_w: "91%",
    window_w: 0,
    window_h: 0,
    mouse_x: 0,
    mouse_y: 0
};
var Map = {
    my_x: 0,
    my_y: 0,
    group_x: 0,
    group_y: 0
};
var job_list = {};
var job_work = {};
// 装备品质
var eq_quality = [
    {name: '普通', color: '#eee'},
    {name: '精品', color: '#0e8bff'},
    {name: '极品', color: '#d000ff'},
    {name: '卓越', color: '#fcbd00',},
    {name: '神器', color: '#ff3d00'},
    {name: '套装', color: '#50ffbf'},
]
/**
 * 根据d_dbst字段值返回对应颜色
 * @param val
 * @returns {{color: string, name: string}|{color: string, name: string}|{color: string, name: string}|{color: string, name: string}|{color: string, name: string}}
 */
const getEqQuality = function (val) {
    return eq_quality[val >= 0 && val <= eq_quality.length ? val : 0];
}
// 物品绑定状态颜色
var item_color = {
    bind: '#8D4B0A', // 绑定物品颜色
}
// 是否开启千位分隔符
var thousandSeparator = true;

